cmake_minimum_required(VERSION 2.6)
project(hello)
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -D_DEBUG" )
set(CMAKE_CXX_FLAGS_RELEASE "-O0 -g -DNDEBUG" )
set(FUN_SRCS fun.cpp)
set(HELLO_SRCS main.cpp)
#add_library(fun SHARED ${FUN_SRCS} )
add_library(fun STATIC ${FUN_SRCS} )
add_executable(${PROJECT_NAME} ${HELLO_SRCS})
target_link_libraries(${PROJECT_NAME} fun) 

